//
//  ClubScanViewController.swift
//  77Club
//
//  Created by Apple on 2024/9/23.
//

import UIKit
import swiftScan

class ClubScanViewController: LBXScanViewController {
    
    private let backButton = c_make_ex(UIButton.self)
        .image("Common_whiteBack").end()
    
    init() {
        super.init(nibName: nil, bundle: nil)
        modalPresentationStyle = .fullScreen
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

    }
    

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        navigation.bar.isHidden = true
        
        self.qRScanView?.subviews{
            backButton
        }
        
        backButton.leading(0).top(.statusHeight).width(56).height(44)
        backButton.addTarget(self, action: #selector(clickBackButton), for: .touchUpInside)
    }

    @objc private func clickBackButton(){
        self.dismiss(animated: true)
    }
}
